/**
 * @author laijianbo 2014-8-8
 */
public class Test {

	public static void main(String[] args) {
		java.text.DateFormat f = new java.text.SimpleDateFormat("yyyy-MM-dd");
//		String s = "2006-01-01 ";
		 String s= "222-222-1 ";
		try {
			java.util.Date d = f.parse(s);
		} catch (java.text.ParseException e) {
			System.out.println("The input is error ");
		}
	}
}
